package com.ruoyi.equipment.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备台账维护对象 equipment_standing_book
 * 
 * @author ruoyi
 * @date 2022-12-14
 */
public class EquipmentStandingBook extends BaseEntity
{
    public EquipmentStandingBook() {
    }

    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long equipmentId;

    public String getEquipmentUid() {
        return equipmentUid;
    }

    public void setEquipmentUid(String equipmentUid) {
        this.equipmentUid = equipmentUid;
    }

    public String getEquipmentType() {
        return equipmentType;
    }

    public void setEquipmentType(String equipmentType) {
        this.equipmentType = equipmentType;
    }

    private String equipmentUid;
    //    设备类别名
    private String equipmentType;

    public EquipmentStandingBook(Long id) {
        this.id = id;
    }

    /** 监测状态 已超期/未超期/已送检 */
    @Excel(name = "监测状态 已超期/未超期/已送检")
    private String detectionState;

    /** 上次检测时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次检测时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastDetectionDay;

    /** 下次检测时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下次检测时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date nextDetectionDay;

    /** 计划送检日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划送检日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planDetectionDay;

    /** 保管单位 */
    @Excel(name = "保管单位")
    private String equipmentOwner;

    /** $table.subTable.functionName信息 */
    private List<Equipment> equipmentList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setEquipmentId(Long equipmentId) 
    {
        this.equipmentId = equipmentId;
    }

    public Long getEquipmentId() 
    {
        return equipmentId;
    }
    public void setDetectionState(String detectionState) 
    {
        this.detectionState = detectionState;
    }

    public String getDetectionState() 
    {
        return detectionState;
    }
    public void setLastDetectionDay(Date lastDetectionDay) 
    {
        this.lastDetectionDay = lastDetectionDay;
    }

    public Date getLastDetectionDay() 
    {
        return lastDetectionDay;
    }
    public void setNextDetectionDay(Date nextDetectionDay) 
    {
        this.nextDetectionDay = nextDetectionDay;
    }

    public Date getNextDetectionDay() 
    {
        return nextDetectionDay;
    }
    public void setPlanDetectionDay(Date planDetectionDay) 
    {
        this.planDetectionDay = planDetectionDay;
    }

    public Date getPlanDetectionDay() 
    {
        return planDetectionDay;
    }
    public void setEquipmentOwner(String equipmentOwner) 
    {
        this.equipmentOwner = equipmentOwner;
    }

    public String getEquipmentOwner() 
    {
        return equipmentOwner;
    }

    public List<Equipment> getEquipmentList()
    {
        return equipmentList;
    }

    public void setEquipmentList(List<Equipment> equipmentList)
    {
        this.equipmentList = equipmentList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("equipmentId", getEquipmentId())
            .append("detectionState", getDetectionState())
            .append("lastDetectionDay", getLastDetectionDay())
            .append("nextDetectionDay", getNextDetectionDay())
            .append("planDetectionDay", getPlanDetectionDay())
            .append("equipmentOwner", getEquipmentOwner())
            .append("equipmentList", getEquipmentList())
            .toString();
    }
}
